//Component Object
Component({
  properties: {
    current:{
      type:String
    },

  },
  data: {

  },
  methods: {
    currentArtive(e){
      const {index} = e.currentTarget.dataset
      this.triggerEvent('upindex',index)
    }
  },
  //组件生命周期函数-在组件实例刚刚被创建时执行，注意此时不能调用 setData )
  created: function(){
   
  },
  attached: function(){
  },
  ready: function(){
    console.log(this.properties);
  },
  moved: function(){

  },
  detached: function(){

  },
});